#include <stdio.h>

int main(int argc, char const *argv[])
{
    int year = 0;
    printf("输入年份");
    scanf("%d",&year);
    if (year % 4 == 0)
    {
        if (year % 100 != 0)
        {
            printf("是闰年\n");
        }
        else if (year % 400 == 0)
        {
            printf("是闰年\n");
        }
        else
        {
            printf("不是闰年\n");
        }
    }
    else
    {
        printf("不是闰年\n");
    }
    
    return 0;
}
